home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / info-service / archie / docs / archie.man.txt < prev    next >
Encoding:
Text File  |  1991-10-10  |  28.1 KB  |  1,057 lines

  1.  
  2.  
  3.  
  4. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  5.  
  6.  
  7.  
  8. NAME
  9.      archie - Internet archive server listing service
  10.  
  11. SYNOPSIS
  12.      archie
  13.  
  14. DESCRIPTION
  15.      The _a_r_c_h_i_e system allows the user to query a  database  con-
  16.      taining  a list of software which is available on hosts con-
  17.      nected to the Internet network.  For hosts connected to  the
  18.      Internet,  software  located  through  this  service  can be
  19.      obtained by means  of  _f_t_p(1);  otherwise,  for  hosts  with
  20.      access  to BITNET/NetNorth/EARN, it can be obtained by elec-
  21.      tronic mail through the Princeton _b_i_t_f_t_p (_1_L) service.
  22.  
  23.      The system can be accessed in an interactive fashion or  via
  24.      electronic mail.
  25.  
  26.   Using the Interactive Interface
  27.      In order to use the interactive system:
  28.  
  29.      1)   Connect  to  host  archie.mcgill.ca   (132.206.2.3   or
  30.           132.206.51.1) with _t_e_l_n_e_t(1).
  31.  
  32.      2)   Login  as  user  archie  (no  capitals,   no   password
  33.           required).   The  system  prints  a  banner message and
  34.           status report.
  35.  
  36.      3)   Type ``help'' for further information.
  37.  
  38.      For full details, refer to the section entitled THE INTERAC-
  39.      TIVE INTERFACE which appears below.
  40.  
  41.   Using the Electronic Mail Interface
  42.      In order to use the email interface, send requests to:
  43.  
  44.           archie@archie.mcgill.ca
  45.  
  46.      Send the word ``help'' in a message  to  obtain  a  list  of
  47.      available  commands  and  features.   This  is  a completely
  48.      automated interface, acting without human intervention.
  49.  
  50.      For full details, refer to the section  entitled  THE  ELEC-
  51.      TRONIC MAIL INTERFACE which appears below.
  52.  
  53.   Communicating with the Database Administrators
  54.      This experimental database service is maintained by the Com-
  55.      puter Science Department of McGill University.  General com-
  56.      ments and suggestions should be sent to:
  57.  
  58.           archie-l@archie.mcgill.ca
  59.  
  60.  
  61.  
  62.  
  63. Sun Release 4.1      Last change: 7 Oct 1991                    1
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  71.  
  72.  
  73.  
  74.      Communications requesting additions to the set of hosts sur-
  75.      veyed  for  the  database,  modifications  to  the  Software
  76.      Description Database, or pertaining to other  administrative
  77.      matters, should be sent to:
  78.  
  79.           archie-admin@archie.mcgill.ca
  80.  
  81. THE INTERACTIVE INTERFACE
  82.   Commands
  83.      Arguments to commands shown  in  square  brackets  '[]'  are
  84.      optional; all others are mandatory.
  85.  
  86.      help List the valid _a_r_c_h_i_e commands.
  87.  
  88.      list [_p_a_t_t_e_r_n]
  89.           List the sites currently stored in  the  database,  and
  90.           the time at which they were last updated.  The optional
  91.           regular expression argument can be used  to  limit  the
  92.           list to specific sites.
  93.  
  94.           Note that the numerical (IP) address associated with  a
  95.           site  name  is  valid  at the listed time, but may have
  96.           been changed.  Furthermore, the listed  IP  address  is
  97.           the  primary  address  as  listed  in  the DNS database
  98.           (secondary addresses are not stored).
  99.  
  100.           Example:
  101.  
  102.                list
  103.  
  104.           lists all sites in the database, while
  105.  
  106.                list \.de$
  107.  
  108.           lists all German sites.
  109.  
  110.      mail [_a_d_d_r_e_s_s_1,[_a_d_d_r_e_s_s_2...]]
  111.           Mail the output of the last command  to  the  specified
  112.           address or comma-separated list of addresses (no spaces
  113.           must appear in the address list).
  114.  
  115.           Example:
  116.  
  117.                mail user1@hello.edu,user2@goodbye.com
  118.  
  119.           In the absence of an argument, the mail is sent to  the
  120.           address specified by the mailto variable.
  121.  
  122.           Example:
  123.  
  124.                mail
  125.  
  126.  
  127.  
  128.  
  129. Sun Release 4.1      Last change: 7 Oct 1991                    2
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  137.  
  138.  
  139.  
  140.           Conventional Internet addressing styles are understood.
  141.           BITNET sites should use the convention:
  142.  
  143.                user@sitename.bitnet
  144.  
  145.           UUCP addresses can be specified as
  146.  
  147.                user@sitename.uucp
  148.  
  149.      prog _p_a_t_t_e_r_n
  150.           Find all occurrences of programs  with  names  matching
  151.           _p_a_t_t_e_r_n. The interpretation of _p_a_t_t_e_r_n depends upon the
  152.           value of the search variable.   The  output  lists  the
  153.           names  of  hosts with matching entries, the size of the
  154.           matching program, its last modification date,  and  its
  155.           path.  The results are sorted according to the value of
  156.           the sortby variable, and are limited in number  by  the
  157.           maxhits variable.
  158.  
  159.      set _v_a_r_i_a_b_l_e-_n_a_m_e
  160.           Set the specified variable.  See the section below con-
  161.           cerning available variables, as well as the entries for
  162.           unset and show.
  163.  
  164.      show [_v_a_r_i_a_b_l_e-_n_a_m_e]
  165.           Display the value of  a  particular  variable.   If  no
  166.           variable is specified, display _a_l_l variables.
  167.  
  168.           Example:
  169.  
  170.                show maxhits
  171.  
  172.      site _s_i_t_e_n_a_m_e
  173.           Produce a full table of contents for a specified _f_t_p(1)
  174.           site  in  the  _a_r_c_h_i_e  database.   The output format is
  175.           similar to that of the UNIX command:
  176.  
  177.                ls -lR
  178.  
  179.           Example:
  180.  
  181.                site col.hp.com
  182.  
  183.      unset _v_a_r_i_a_b_l_e
  184.           Remove any value associated with  the  specified  vari-
  185.           able.   This  may  cause  counter-intuitive behavior in
  186.           some cases; for example, if maxhits is not  defined  by
  187.           the user, prog will print the default number of matches
  188.           rather than an unlimited number of matches.
  189.  
  190.      whatis _s_u_b_s_t_r_i_n_g
  191.           Search the Software Description Database for the  given
  192.  
  193.  
  194.  
  195. Sun Release 4.1      Last change: 7 Oct 1991                    3
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  203.  
  204.  
  205.  
  206.           substring,  ignoring  case.   This database consists of
  207.           names and short descriptions of many software packages,
  208.           documents  (like  RFCs  and  educational material), and
  209.           data files stored on the Internet.
  210.  
  211.           Example:
  212.  
  213.                whatis uucp
  214.  
  215.           in part gives as a result:
  216.  
  217.                findpath.sh             UUCP Pathfinder
  218.                logfile-stats           UUCP LOGFILE analyzer
  219.                mapstats                UUCP map  statistics  pro-
  220.                gram
  221.  
  222.   Variable Types
  223.      The behavior of _a_r_c_h_i_e can be modified by certain variables,
  224.      the values of which may be changed using the set command, or
  225.      removed entirely by the  unset  command.   There  are  three
  226.      variable types:
  227.  
  228.      boolean        (Set or unset)
  229.  
  230.      numeric        (Integer within a defined range)
  231.  
  232.      string         (String of characters, may or may not be res-
  233.                     tricted).
  234.  
  235.   Boolean Variables
  236.      pager
  237.           Filter all output through the pager _l_e_s_s(1L)  (default:
  238.           unset).   When using the pager you may also want to set
  239.           the term variable to your terminal type (see term vari-
  240.           able).
  241.  
  242.           Example:
  243.  
  244.                set pager
  245.  
  246.      status
  247.           During the database search, display a status-line  con-
  248.           taining  the  number  of  matches and percentage of the
  249.           database searched (default: set).
  250.  
  251.   Numeric Variables
  252.      autologout
  253.           Set the length of idle time (in minutes) allowed before
  254.           automatic  logout  (permissible  range: 1-300; default:
  255.           60).
  256.  
  257.           Example:
  258.  
  259.  
  260.  
  261. Sun Release 4.1      Last change: 7 Oct 1991                    4
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  269.  
  270.  
  271.  
  272.                set autologout 45
  273.  
  274.           logs the user out after 45 minutes of idle time.
  275.  
  276.      maxhits
  277.           Allow the prog command to generate at most  the  speci-
  278.           fied  number  of  matches  (permissible  range: 0-1000;
  279.           default: 1000).  Set this to a smaller value if  _a_r_c_h_i_e
  280.           is too slow.
  281.  
  282.           Example:
  283.  
  284.                set maxhits 100
  285.  
  286.           halts prog after 100 matches have been found.
  287.  
  288.   String Variables
  289.      mailto
  290.           If the _m_a_i_l(1) command is  issued  with  no  arguments,
  291.           mail  the  output  of  the  last command to the address
  292.           specified by this string variable, which may contain  a
  293.           single  mail  address,  or  a  comma-separated  list of
  294.           addresses (lists must not contain whitespace).
  295.  
  296.           Example:
  297.  
  298.                set mailto user@frobozz.com
  299.  
  300.           Example:
  301.  
  302.                set mailto user1@hello.edu,user2@goodbye.com
  303.  
  304.           Conventional Internet addressing styles are understood.
  305.           BITNET sites should use the convention:
  306.  
  307.                user@sitename.bitnet
  308.  
  309.           UUCP addresses can be specified as
  310.  
  311.                user@sitename.uucp
  312.  
  313.      search
  314.  
  315.           Define the type of search to be performed by  the  prog
  316.           command.  The following values are permitted:
  317.  
  318.           exact
  319.                Exact match (the fastest method).  A match  occurs
  320.                if  the  file  (or directory) name in the database
  321.                corresponds _e_x_a_c_t_l_y to  the  user-given  substring
  322.                (including case).
  323.  
  324.  
  325.  
  326.  
  327. Sun Release 4.1      Last change: 7 Oct 1991                    5
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  335.  
  336.  
  337.  
  338.                For example, this type of search could be used  to
  339.                locate all _x_l_o_c_k._t_a_r._Z files.
  340.  
  341.           regex
  342.                Allow user-specified (search) strings to take  the
  343.                form  of  _e_d(1)  regular  expressions (the default
  344.                search method).
  345.  
  346.                Note: unless specifically anchored to  the  begin-
  347.                ning  (with  ^)  or  end (with $) of a line, _e_d(_1)
  348.                regular  expressions  (effectively)  have   ``.*''
  349.                prepended  and  appended to them.  For example, it
  350.                is not necessary to type
  351.  
  352.                     prog .*xnlock.*
  353.  
  354.                because
  355.  
  356.                     prog xnlock
  357.  
  358.                suffices.  In this instance, the  regex  match  is
  359.                equivalent a simple substring match.  Those unfam-
  360.                iliar with regular expressions should refer to the
  361.                section entitled REGULAR EXPRESSIONS which appears
  362.                below.
  363.  
  364.           sub  Substring (case insensitive).  A match  occurs  if
  365.                the  file (or directory) name in the database con-
  366.                tains the user-given substring, without regard  to
  367.                case.
  368.  
  369.                Example:
  370.  
  371.                The pattern:
  372.  
  373.                     is
  374.  
  375.                matches any of the following:
  376.  
  377.                     islington
  378.                     this
  379.                     poison
  380.  
  381.           subcase
  382.                Substring (case sensitive).  As above, but  taking
  383.                case as significant.
  384.  
  385.                Example:
  386.  
  387.                The pattern:
  388.  
  389.                     TeX
  390.  
  391.  
  392.  
  393. Sun Release 4.1      Last change: 7 Oct 1991                    6
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  401.  
  402.  
  403.  
  404.                will match:
  405.  
  406.                     LaTeX
  407.  
  408.                but neither of the following:
  409.  
  410.                     Latex
  411.                     TExTroff
  412.  
  413.      sortby
  414.  
  415.           Set the method of sorting to be applied to output  from
  416.           prog.   Typing  the  keyboard interrupt character (gen-
  417.           erally Ctl-C on UNIX hosts) aborts a  search.   Results
  418.           obtained  to that point will be sorted according to the
  419.           sortby variable and sent as output.  The  output  phase
  420.           may  be  aborted by typing the abort character a second
  421.           time.  The five permitted methods (and their associated
  422.           reverse orders) are:
  423.  
  424.           none Unsorted (default; no reverse order, though  rnone
  425.                is accepted)
  426.  
  427.           filename
  428.                Sort  files/directories  by  name,  using  lexical
  429.                order (reverse order: rfilename)
  430.  
  431.           hostname
  432.                Sort on the archive  hostname,  in  lexical  order
  433.                (reverse order: rhostname)
  434.  
  435.           size Sort  by  size,  largest  files/directories  first
  436.                (reverse order: rsize)
  437.  
  438.           time Sort by modification time, with  the  most  recent
  439.                file/directory names first (reverse order: rtime)
  440.  
  441.      term Specify the type of terminal in  use  (and  optionally,
  442.           its  size  in  rows  and columns).  This information is
  443.           used by the pager.
  444.  
  445.           The usage is:
  446.  
  447.                set term <terminal-type> [<#rows> [<#columns>]]
  448.  
  449.           The terminal type is mandatory, but the number of  rows
  450.           and  columns  is optional; specify either rows only, or
  451.           both rows and columns (default: 24 rows, 80 columns).
  452.  
  453.           Examples:
  454.  
  455.                set term vt100
  456.  
  457.  
  458.  
  459. Sun Release 4.1      Last change: 7 Oct 1991                    7
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  467.  
  468.  
  469.  
  470.                set term xterm 60
  471.                set term xterm 24 100
  472.  
  473. THE ELECTRONIC MAIL INTERFACE
  474.      The _a_r_c_h_i_e email interface currently accepts a limited  sub-
  475.      set of the interactive interface commands, plus a few of its
  476.      own.  Variables are not supported in  the  email  interface.
  477.      The ``Subject:'' line in incoming mail is processed as if it
  478.      were part of the main message body.   The  help  command  is
  479.      exclusive;  all  other  commands  in  the  same  message are
  480.      ignored.  A message not containing a valid request  will  be
  481.      treated  as  a help request.  The server recognizes the fol-
  482.      lowing commands:
  483.  
  484.      compress
  485.           Process the mail message with the _c_o_m_p_r_e_s_s(1) and _u_u_e_n_-
  486.           _c_o_d_e(1)  programs.  Upon receiving the reply, the reci-
  487.           pient should remove the mail header and run the rest of
  488.           the  file  through _u_u_d_e_c_o_d_e(1), producing a file with a
  489.           name of the form:
  490.  
  491.                file.Z
  492.  
  493.           Process this file  with  _u_n_c_o_m_p_r_e_s_s(1)  to  obtain  the
  494.           results of the request.
  495.  
  496.      help Send a message describing how to use the  email  inter-
  497.           face.
  498.  
  499.      path _p_a_t_h
  500.           Override the return  address  that  would  normally  be
  501.           extracted  from  the header.  The path describes how to
  502.           mail a message from _c_s._m_c_g_i_l_l._c_a, which is  fully  con-
  503.           nected  to  the  Internet,  to  your address.  Consider
  504.           adding a path command to a request to provide an expli-
  505.           cit  return  address  if  the  _a_r_c_h_i_e  server  does not
  506.           respond to the original request within  several  hours.
  507.           BITNET users should use the convention:
  508.  
  509.                user@site.bitnet
  510.  
  511.           UUCP users should use the convention:
  512.  
  513.                user@site.uucp
  514.  
  515.      prog <_r_e_g _e_x_p_1> [<_r_e_g _e_x_p_2> ...]
  516.           Search of database for each  (an  _e_d(1)-style)  regular
  517.           expression,  and  return any matches.  Multiple regular
  518.           expressions may be placed on one line,  in  which  case
  519.           the  results will be mailed back in one message.  Where
  520.           regular expressions appear on multiple lines,  multiple
  521.           messages  will  be  returned,  one  for  each line (not
  522.  
  523.  
  524.  
  525. Sun Release 4.1      Last change: 7 Oct 1991                    8
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  533.  
  534.  
  535.  
  536.           working correctly yet).  Any  regular  expression  con-
  537.           taining  spaces  must  be  quoted with single or double
  538.           quotes.  Searches are case sensitive.  The prog command
  539.           is  executed  as  if  the  search  variable were set to
  540.           _r_e_g_e_x.   Those  unfamiliar  with  regular   expressions
  541.           should  refer  to  the section entitled REGULAR EXPRES-
  542.           SIONS which appears below.
  543.  
  544.      quit Stop interpreting the request.  This prevents the inad-
  545.           vertent  interpretation  of  text in an email signature
  546.           which might accidentally resemble a valid  _a_r_c_h_i_e  com-
  547.           mand.
  548.  
  549.      site <_s_i_t_e _n_a_m_e> | <_s_i_t_e _I_P _a_d_d_r_e_s_s>
  550.           Return a list of the contents of  the  specified  <_s_i_t_e
  551.           _n_a_m_e>.   The  fully qualified domain name or IP address
  552.           may be used.
  553.  
  554.      list<_r_e_g _e_x_p_1> [<_r_e_g _e_x_p_2> ...]
  555.           List all of the sites names  currently  stored  in  the
  556.           database  that match <_r_e_g _e_x_p> (an _e_d(1)-style) regular
  557.           expression, and return any matches. The format  of  the
  558.           resulting  list is: site name, site IP address and date
  559.           last updated in the database.
  560.  
  561.      whatis <_s_u_b_s_t_r_i_n_g_1> [<_s_u_b_s_t_r_i_n_g_2> ...]
  562.           Search the  Software  Description  Database  (SDD)  for
  563.           <_s_u_b_s_t_r_i_n_g>  The  SDD is a text database containing the
  564.           names and short descriptions  of  about  3500  software
  565.           packages,  documents  and  datasets  available  on  the
  566.           Internet. If you have  any  corrections  or  additions,
  567.           mail them to
  568.  
  569.           archie-admin@archie.mcgill.ca
  570.  
  571.           Multiple <substring> arguments may  be  placed  on  the
  572.           same whatis command line.
  573.  
  574.  
  575. REGULAR EXPRESSIONS
  576.      Regular expressions follow the conventions of the _e_d(1) com-
  577.      mand,  allowing sophisticated pattern matching.  In the fol-
  578.      lowing discussion, the string containing a  regular  expres-
  579.      sion  will be called the ``pattern'', and the string against
  580.      which  it  is  to  be  matched  is  called  the  ``reference
  581.      string''.  Regular expressions imbue certain characters with
  582.      special meaning, providing a  quoting  mechanism  to  remove
  583.      this special meaning when required.
  584.  
  585.      The rules governing regular expression are:
  586.  
  587.      c    A  character  c  matches  itself  unless  it  has  been
  588.  
  589.  
  590.  
  591. Sun Release 4.1      Last change: 7 Oct 1991                    9
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  599.  
  600.  
  601.  
  602.           assigned  a special meaning as listed below.  A special
  603.           character loses its special meaning  when  preceded  by
  604.           the  character  '\'.  This does not apply to '{', which
  605.           is non-special _u_n_t_i_l it is so treated.  Thus,  although
  606.           '*'  _n_o_r_m_a_l_l_y  _h_a_s  _s_p_e_c_i_a_l  _m_e_a_n_i_n_g,  _t_h_e  _s_t_r_i_n_g '\*'
  607.           matches itself.
  608.  
  609.           Example:
  610.  
  611.           The pattern
  612.  
  613.                acdef
  614.  
  615.           matches any of the following:
  616.  
  617.                s83acdeffff
  618.                acdefsecs
  619.                acdefsecs
  620.  
  621.           but neither of the following:
  622.  
  623.                accdef
  624.                aacde1f
  625.  
  626.           Example:
  627.  
  628.           Normally the characters '*'  and '$' are  special,  but
  629.           the pattern
  630.  
  631.                a\*bse\$
  632.  
  633.           acts as above.  Any reference string containing:
  634.  
  635.                a*bse$
  636.  
  637.           as a substring will be flagged as a match.
  638.  
  639.      .    A period (known as a _w_i_l_d_c_a_r_d  character)  matches  any
  640.           character except the newline character.
  641.  
  642.           Example:
  643.  
  644.           The pattern
  645.  
  646.                ....
  647.  
  648.           will match any 4 characters in  the  reference  string,
  649.           except a newline character.
  650.  
  651.      ^    A caret (^) appearing at the  beginning  of  a  pattern
  652.           requires  that the reference string must start with the
  653.           specified  pattern  (an  escaped  caret,  or  a   caret
  654.  
  655.  
  656.  
  657. Sun Release 4.1      Last change: 7 Oct 1991                   10
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  665.  
  666.  
  667.  
  668.           appearing  elsewhere  in  the  pattern, is treated as a
  669.           non-special character).
  670.  
  671.           Example:
  672.  
  673.           The pattern
  674.  
  675.                ^efghi
  676.  
  677.           The pattern will match  only  those  reference  strings
  678.           starting  with efghi; thus, it will match either of the
  679.           following:
  680.  
  681.                efghi
  682.                efghijlk
  683.  
  684.           but not:
  685.  
  686.                abcefghi
  687.  
  688.      $    A dollar sign ($) appearing at the  end  of  a  pattern
  689.           requires that the pattern appear at the end of a refer-
  690.           ence string (an escaped dollar sign, or a  dollar  sign
  691.           appearing  elsewhere,  is  treated as a regular charac-
  692.           ter).
  693.  
  694.           Example:
  695.  
  696.           The pattern
  697.  
  698.                efghi$
  699.  
  700.           Will match either of the following:
  701.  
  702.                efghi abcdefghi
  703.  
  704.           but not:
  705.  
  706.                efghijkl
  707.  
  708.      \<   Match something at the beginning of a _w_o_r_d (the  begin-
  709.           ning  of  a  line,  or  just before a letter, digit, or
  710.           underline character, or just after a character which is
  711.           not one of the foregoing).
  712.  
  713.           Example:
  714.  
  715.           The pattern
  716.  
  717.                \<abc
  718.  
  719.           matches the last abc in the reference string:
  720.  
  721.  
  722.  
  723. Sun Release 4.1      Last change: 7 Oct 1991                   11
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  731.  
  732.  
  733.  
  734.                @hijabc#+abc
  735.  
  736.           but not the first, since the first abc did not start on
  737.           a word boundary.
  738.  
  739.      \>   Match the following one-character regular expression at
  740.           the end of a word, as defined above.
  741.  
  742.      [string]
  743.           Match any single character within  the  brackets.   The
  744.           caret  (^)  has  a  special  meaning if it is the first
  745.           character in the series: the  pattern  will  match  any
  746.           character _o_t_h_e_r than one in the list.
  747.  
  748.           Example:
  749.  
  750.           The pattern
  751.  
  752.                [^abc]
  753.  
  754.           Will match any character _e_x_c_e_p_t one of:
  755.  
  756.                a
  757.                b
  758.                c
  759.  
  760.           To match a right bracket (]) in the list, put it first,
  761.           as in:
  762.  
  763.                []ab01]
  764.  
  765.           A caret appearing anywhere but the in first position is
  766.           treated as a regular character.
  767.  
  768.           The minus (-) character is special within square brack-
  769.           ets.   It is used to define a range of ASCII characters
  770.           to be matched.  For example, the pattern:
  771.  
  772.                [a-z]
  773.  
  774.           matches any lower case letter.  The minus can  be  made
  775.           non-special  by  placing  it  first  or last within the
  776.           square brackets.  The characters '$', '*' and  '.'  are
  777.           not special within square brackets.
  778.  
  779.           Example:
  780.  
  781.           The pattern
  782.  
  783.                [ab01]
  784.  
  785.           matches a single occurrence of  a  character  from  the
  786.  
  787.  
  788.  
  789. Sun Release 4.1      Last change: 7 Oct 1991                   12
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  797.  
  798.  
  799.  
  800.           set:
  801.  
  802.                a
  803.                b
  804.                0
  805.                1
  806.  
  807.           Example:
  808.  
  809.           The pattern
  810.  
  811.                [^ab01]
  812.  
  813.           will match any single character other than one from the
  814.           set:
  815.  
  816.                a
  817.                b
  818.                0
  819.                1
  820.  
  821.           Example :
  822.  
  823.           The pattern
  824.  
  825.                [a0-9b]
  826.  
  827.           matches one of the characters:
  828.  
  829.                a
  830.                b
  831.  
  832.           or a digit between 0 and 9, inclusive.
  833.  
  834.           Example :
  835.  
  836.           The pattern
  837.  
  838.                [^a0-9b.$]
  839.  
  840.           matches any single character which is not in the set:
  841.  
  842.                a
  843.                b
  844.                .
  845.                $
  846.  
  847.           or a digit between 0 and 9, inclusive.
  848.  
  849.      *    Match  zero  or  more  occurrences  of  an  immediately
  850.           preceding regular expression.
  851.  
  852.  
  853.  
  854.  
  855. Sun Release 4.1      Last change: 7 Oct 1991                   13
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  863.  
  864.  
  865.  
  866.           Example:
  867.  
  868.           The pattern
  869.  
  870.                a*
  871.  
  872.           matches zero or more occurrences of the character:
  873.  
  874.                a
  875.  
  876.           Example:
  877.  
  878.           The pattern
  879.  
  880.                [A-Z]*
  881.  
  882.           matches zero or more  occurrences  of  the  upper  case
  883.           alphabet.
  884.  
  885.      \{_m\}
  886.           Match exactly _m  occurrences  of  a  preceding  regular
  887.           expression, where _m is a non-negative integer between 0
  888.           and 255 (inclusive).
  889.  
  890.           Example:
  891.  
  892.           The pattern
  893.  
  894.                ab\{3\}
  895.  
  896.           matches any substring in the reference string  consist-
  897.           ing  of the character `a' followed by exactly three `b'
  898.           characters.
  899.  
  900.      \{_m,\}
  901.           Match at least _m occurrences of the  preceding  regular
  902.           expression.
  903.  
  904.           Example:
  905.  
  906.           The pattern
  907.  
  908.                ab\{3,\}
  909.  
  910.           matches any substring in the reference  string  of  the
  911.           character  `a'  followed  by at least three `b' charac-
  912.           ters.
  913.  
  914.      \{_m,_n\}
  915.           Match between _m and _n occurrences of the preceding reg-
  916.           ular  expression  (where  _n  is  a non-negative integer
  917.           between 0 and 255, and _n>_m).
  918.  
  919.  
  920.  
  921. Sun Release 4.1      Last change: 7 Oct 1991                   14
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  929.  
  930.  
  931.  
  932.           Example:
  933.  
  934.           The pattern
  935.  
  936.                ab\{3,5\}
  937.  
  938.           matches any substring in the reference string  consist-
  939.           ing of the character `a' followed by at least three but
  940.           at most five `b' characters.
  941.  
  942.   Tips for Using Regular Expressions
  943.      1)   When matching a substring it is not  necessary  to  use
  944.           the  wildcard character to match the part of the refer-
  945.           ence string preceding and following the substring.
  946.  
  947.           Example:
  948.  
  949.           The pattern
  950.  
  951.                abcd
  952.  
  953.           will match any reference string  containing  this  pat-
  954.           tern.  It is not necessary to use
  955.  
  956.                .*abcd.*
  957.  
  958.           as the pattern.
  959.  
  960.      2)   In order to constrain a pattern to the entire reference
  961.           pattern, use the construction:
  962.  
  963.                ^pattern$
  964.  
  965.      3)   The '[]' operator provides an easy mechanism to  obtain
  966.           case insensitivity.  For example, to match the word:
  967.  
  968.                hello
  969.  
  970.           regardless of case, use the pattern:
  971.  
  972.                [Hh][Ee][Ll][Ll][Oo]
  973.  
  974. THE ARCHIE DATABASE
  975.      The _a_r_c_h_i_e database subsystem maintains a list of about  800
  976.      Internet  _f_t_p(1)  archive  sites.   Each night, the database
  977.      subsystem executes an anonymous _f_t_p(1) to a subset of  these
  978.      sites  and  fetches a recursive directory listing (or a file
  979.      containing the recursive directory listing if this  exists).
  980.      Currently,  each  site  gets  updated  approximately  once a
  981.      month.    The   directory    listings    are    stored    on
  982.      _a_r_c_h_i_e._m_c_g_i_l_l._c_a  (132.206.2.3), where they are available to
  983.      the Internet community via anonymous _f_t_p(1).  They appear in
  984.  
  985.  
  986.  
  987. Sun Release 4.1      Last change: 7 Oct 1991                   15
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994. ARCHIE(1L)        MISC. REFERENCE MANUAL PAGES         ARCHIE(1L)
  995.  
  996.  
  997.  
  998.      the directory ~_f_t_p/_a_r_c_h_i_e/_l_i_s_t_i_n_g_s in compressed form.
  999.  
  1000. BUGS AND LIMITATIONS
  1001.      1)   Only UNIX sites are included in the database.
  1002.  
  1003.      2)   The user can not limit searches to specific sites.
  1004.  
  1005.      3)   There is no graphical user interface.
  1006.  
  1007.      4)   There is no way to abort the help facility completely.
  1008.  
  1009. LONG TERM PLANS
  1010.      The _a_r_c_h_i_e system is regarded as developmental, and  is  not
  1011.      presently  being  released  to  outside  sites.  The current
  1012.      database requires about 70  MB  of  disk  storage,  and  the
  1013.      updates  and searches put a noticeable load on the Sun 4/280
  1014.      on which it operating.  We  hope  to  distribute  _a_r_c_h_i_e  to
  1015.      several other sites throughout the world, at a later date.
  1016.  
  1017.      We welcome comments and suggestions;  please  send  them  to
  1018.      _a_r_c_h_i_e-_l@_a_r_c_h_i_e._m_c_g_i_l_l._c_a.
  1019.  
  1020. SEE ALSO
  1021.      bitftp (1L), ftp(1), telnet(1)
  1022.  
  1023. AUTHORS
  1024.      Alan   Emtage   (bajan@cc.mcgill.ca)   and    Bill    Heelan
  1025.      (wheelan@cs.mcgill.ca),  McGill  University.  Manual page by
  1026.      R. P. C. Rodgers, UCSF School of  Pharmacy,  San  Francisco,
  1027.      California  94143 (rodgers@maxwell.mmwb.ucsf.edu), Nelson H.
  1028.      F. Beebe (beebe@math.utah.edu), and Alan Emtage.
  1029.  
  1030.  
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036.  
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053. Sun Release 4.1      Last change: 7 Oct 1991                   16
  1054.  
  1055.  
  1056.  
  1057.